package club.lovety.oauth2;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

/**
 * 开启了角色注解的功能
 */
@EnableGlobalMethodSecurity(securedEnabled = true)
@SpringBootApplication
@EnableResourceServer

public class ResourcesApplication {

    private static final Logger log = LoggerFactory.getLogger(ResourcesApplication.class);

    public static void main(String[] args) {

        log.debug("开始启动资源服务器");

        SpringApplication.run(ResourcesApplication.class,args);

        log.debug("启动资源服务器成功");

    }
}
